package com.slz3.business.module.wmsManagement.wmsPurchaseOrderSelf.req;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.UUID;

/**
 * @author fengshiyou  on 2018/12/5 4:32 PM
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class AddFormLine {

    /**
     * 订单行UUID
     */
    private UUID uuid;
    /**
     * 商品ID
     */
    @NotNull(message = "商品ID不能为空")
    private UUID goodsUUID;
    /**
     * 商品规格ID
     */
    @NotNull(message = "商品规格不能为空")
    private UUID goodsSpecificationUUID;
    /**
     * 采购数量
     */
    @NotNull(message = "商品ID不能为空")
    private String goodsNum;
    /**
     * 商品备注
     */
    private String goodsRemark;

    /**
     * 采购单价
     */
    @NotNull(message = "采购单价不能为空")
    private BigDecimal singlePrice;

    /**
     * 采购数量
     */
    @Length(min = 1)
    @NotNull(message = "采购数量不能为空")
    private Integer count;

    /**
     * 采购总价
     */
    private BigDecimal totalPrice;

}
